package com.fang.gateway.entity.bo;

import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * @Description
 * @Author Bernie_fang
 * @Date 2024/12/11 22:49
 **/
public class UserRoleBo implements GrantedAuthority, Serializable {

    /**
     * 用户ID
     */
    private String userId;
    /**
     * 角色标识
     */
    private String identifier;
    /**
     * 角色名
     */
    private String name;

    /**
     * 角色说明
     */
    private String description;

    /**
     * 角色类型:B(Base基础角色);D(Derived衍生角色)
     */
    private String type;

    /**
     * 角色级别
     */
    private String level;

    /**
     * 角色部门
     */
    private String department;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public String getAuthority() {
        return this.identifier;
    }

}
